package acm.第二轮;

import java.util.Scanner;

/**
 * 每一刀有3个选择
 *  平行与x轴的切法，平行与y轴的切法，既不平行x也不平行于y
 */
public class B {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int count = sc.nextInt();
        while (count-- > 0) {
            int n=sc.nextInt();
            int Sn=(1+n)*n/2+1;
            System.out.println(Sn);
        }
    }
}
